﻿@model JRFinances.ViewModels.Companies.DetailsCompanyViewModel
           
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>

<h2>@Model.Name</h2>

<div>
    @{ Html.RenderPartial("_QuotationChart", Model);}
</div>

<p>@*@Ajax.ActionLink("3 miesiace", "DrawQuotationChart", new { id = Model.CompanyId, option = 0 }, new AjaxOptions { UpdateTargetId = "QuotationChart", InsertionMode = InsertionMode.Replace })*@ 
@Html.ActionLink("3 miesiace", "DrawQuotationChart", new { id = Model.CompanyId, option = 0 })
| @Html.ActionLink("1 rok", "DrawQuotationChart", new { id = Model.CompanyId, option = 1 }) 
| @Html.ActionLink("3 lata", "DrawQuotationChart", new { id = Model.CompanyId, option = 2 }) 
| @Html.ActionLink("10 lat", "DrawQuotationChart", new { id = Model.CompanyId, option = 3 }) 
| @Html.ActionLink("Od poczatku", "DrawQuotationChart", new { id = Model.CompanyId, option = 4 })</p>

<div>
    Spolka zostala kupiona @Model.NumberOfRealBuyTransactions razy w przeciagu ostatniego roku.
</div>